
package group6renderer.renderernode;

import group6renderer.Visitor;

/** ClASS NAME: FormatNode
 * DESCRIPTION: An abstract class to deal with format nodes which involve formatting the text on the Display
 * COLABORATORING CLASSES: TreeNode, Visitor
 * @author jonnie
 */
public abstract class FormatNode extends TreeNode {
	protected boolean goingDown=true;
   
	
	/** 
     * A method to return whether this Node is a LeafNode
     * @return true if this node has a closing tag and false otherwise
     */
    public boolean isLeaf()
    {
	return false;
    }
    
    /** 
     * A method to accept a Visitor so that its method can be called to visit this node. 
     * @param theVisitor references the Visitor interface
     * @Override
     */
	public void accept(Visitor theVisitor) {
		theVisitor.visit(this);
	}
}
